﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SistemaComprasVentaYICHAN
{
    public partial class ListaProveedoresDLG : Form
    {
        public ListaProveedoresDLG()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void button2_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            JefeMarca jefe = new JefeMarca();
            if (radioButton1.Checked) jefe.AsignarProveedor(radioButton1.Text);
            else if (radioButton2.Checked) jefe.AsignarProveedor(radioButton2.Text);
            else if (radioButton3.Checked) jefe.AsignarProveedor(radioButton3.Text);
            else if (radioButton4.Checked) jefe.AsignarProveedor(radioButton4.Text);
            else if (radioButton5.Checked) jefe.AsignarProveedor(radioButton5.Text);
            Close();
        }
    }
}
